import { _decorator, Component, director, Label, Node } from 'cc';
const { ccclass, property } = _decorator;

@ccclass('GameOverUI')
export class GameOverUI extends Component {

    @property(Node)
    restartButton:Node = null;
    @property(Node)
    quitButton:Node = null;

    @property(Label)
    highestScore:Label = null;
    @property(Label)
    currentScore:Label = null;

    start() {

    }

    update(deltaTime: number) {
        
    }

    showGameOverUI(highestScore:number, currentScore:number) {
        this.node.active = true;
        this.highestScore.string = highestScore.toString();
        this.currentScore.string = currentScore.toString();
    }
}

